package com.bkgy.controller.runtrack.controller;

import com.bkgy.controller.runtrack.entity.RunTrackRequest;
import com.bkgy.controller.runtrack.service.RunTrackService;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 计划卷跑偏预测
 */
@RestController
@RequestMapping("/track")
public class RunTrackController {

    @Autowired
    private RunTrackService runTrackService;

    @Operation(summary = "计划卷跑偏预测列表", description = "根据入口卷号条件查询计划卷跑偏预测数据")
    @PostMapping("/getRunTrackData")
    public ResultData getRunTrackData(@RequestBody RunTrackRequest request) {
        return runTrackService.getRunTrackData(request);
    }

}
